package pub.strawhat.zoro.tools.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ToolsController {

	@GetMapping(value = "/")
	public String admin() {
		return "json";
	}

	@GetMapping(value = "/unicode.html")
	public String unicode(Model model) {
		model.addAttribute("active", "unicode");
		return "unicode";
	}
	
	@GetMapping(value = "/json.html")
	public String json(Model model) {
		model.addAttribute("active", "json");
		return "json";
	}
	
	@GetMapping(value = "/rgb.html")
	public String rgb(Model model) {
		model.addAttribute("active", "rgb");
		return "rgb";
	}
	
	@GetMapping(value = "/sql.html")
	public String sql(Model model) {
		model.addAttribute("active", "sql");
		return "sql";
	}

}